package com.ming.seatMonitoring.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ming.seatMonitoring.pojo.DO.BookRoomInfoDO;
import com.ming.seatMonitoring.pojo.DO.UseManageDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author 小明
 * @date 2021/10/23
 * @description
 */
@Mapper
@Repository
public interface UseManageMapper extends BaseMapper<BookRoomInfoDO> {
    Page<BookRoomInfoDO> getCountByUserId(Page<BookRoomInfoDO> page, String userId);

    Page<BookRoomInfoDO> getListByRoomId(Page<BookRoomInfoDO> page, int roomId);
}
